package cn.gson.crm.model.dao;

import java.util.List;

import org.springframework.data.repository.CrudRepository;

import cn.gson.crm.model.entity.Distribution;

public interface DistributionDao extends CrudRepository<Distribution, Long> {

	List<Distribution> findAllByParentIsNull();

	List<Distribution> findAllByParentIsNullOrderByIdDesc();

	List<Distribution> findAllByParentIsNullOrderByIdAsc();

}
